<<<<<<< HEAD
<<<<<<< HEAD
let caixia ={
    
=======
// import $http from 'axios'
import { funget1, funget2, funget3, funget4, funget5, funget6, funget7, funget8, funget9, funget10 } from '@/api/caixia/index'
let caixia = {
    state: {
        text: [],
        data: [],
        para: [],
        hot: [],
        search: [],
        inter: [],
        comlist: [],
        update: ''
    },
    getters: {
    },
    mutations: {
        UP_DATA(state, payload) {
            state.text = payload.text

        },
        COM_DATA(state, payload) {
            state.data = payload.data
        },
        Huawei_DATA(state, payload) {
            state.para = payload.para
        },
        HOT_DATA(state, payload) {
            state.hot = payload.hot
        },
        SEARCH_DATA(state, payload) {
            state.search.push(payload.search)
        },
        SER_DATA(state, payload) {
            state.search = payload.search
        },
        INTER_COMMIT(state, payload) {
            state.inter = payload.inter
        },
        INTER_COM_LIST(state, payload) {
            state.comlist = payload.comlist
        },
        CLEAR_COM_LIST(state, payload) {
            state.search = payload.clearlist
        },
        CHANGE_LIST(state, payload) {
            state.update = payload.updatelist
        }
    },
    actions: {
        LINK_JSON_SERVER(context) {
            funget1().then((ok) => {

                context.commit('UP_DATA', { text: ok.data })

            })
        },


        FIND_DATA(context) {
            funget2().then((ok) => {

                context.commit('COM_DATA', { data: ok.data })

            })


        },

        Hua_Wei(context) {
            funget3().then((ok) => {

                context.commit('Huawei_DATA', { para: ok.data })

            })

        },
        HOT_QUEST(context) {
            funget4().then((ok) => {
                // hotquest
                context.commit('HOT_DATA', { hot: ok.data })

            })

        },
        SEARCH_QUEST(context, payload) {
            //search
            funget5(payload).then((ok) => {


                context.commit('SEARCH_DATA', { search: ok.data })

            })

        },
        SEARCH_DATA_QUEST(context) {
            funget6().then((ok) => {

                context.commit('SER_DATA', { search: ok.data })

            })

        },
        INTER_ACT(context) {
            funget7().then((ok) => {
                //inter
                context.commit('INTER_COMMIT', { inter: ok.data })

            })
        },
        COM_LIST(context, payload) {
            funget9(payload).then((ok) => {

                context.commit('INTER_COM_LIST', { comlist: ok.data })

            })
        },
        CLEAR_LIST(context, payload) {
            funget10(payload).then((ok) => {

                context.commit('CLEAR_COM_LIST', { clearlist: ok.data })

            })
        },
        UPDATE_DATA(context, payload) {
            funget8({
                // json-server没有跨域，所以要写全

                data: {
                    context: payload.context
                }


            }).then((ok) => {
                console.log(ok.data);
                context.commit('CHANGE_LIST', { updatelist: ok.data })

            })
        }


    }
>>>>>>> caixia
=======
let caixia ={
    
>>>>>>> qiqi
}
export default caixia